import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

const pre = 'content-'

export default {
  path: '/content',
  name: '内容',
  redirect: {
    name: `${pre}list`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        ...meta,
        title: '文章列表',
      },
      component: () => import('@/pages/content/list')
    },
    {
      path: 'classify',
      name: `${pre}classify`,
      meta: {
        ...meta,
        title: '栏目管理',
      },
      component: () => import('@/pages/content/classify')
      },
      {
      path: 'evaluate',
      name: `${pre}evaluate`,
      meta: {
        ...meta,
        title: '专家评价',
      },
      component: () => import('@/pages/content/evaluate')
    },
    {
      path: 'model',
      name: `${pre}model`,
      meta: {
        ...meta,
        title: '模型',
      },
      component: () => import('@/pages/content/model')
    }
  ]
}
